package com.futurescale.sa.model.enum
{
	/**
	 * A base class for enumerations
	 */
	[Bindable]
	public class Enum
	{
		public var name:String;
		public var ordinal:Number;
		public var description:String;
		
		public function Enum( ordinal:Number, name:String, description:String )
		{
			this.name = name;
			this.ordinal = ordinal;
			this.description = description;
		}
		
		/**
		 * Compare to another enum instance
		 */
		public function equals( enum:Enum ):Boolean
		{
			return ( ( this.name        == enum.name )    && 
				( this.ordinal     == enum.ordinal ) && 
				( this.description == enum.description )
			);
		}
	}
}